extract elevation information from DEM